package server;

public class ActiveUser {
	private String username, pNbr;
	private int clearance, division;

	/**
	 * Keeps track of the user logged in to the database. 
	 * @param username The users user name 
	 * @param pNbr The users person number
	 * @param clearance The users clearance
	 * @param division The users division
	 */
	public ActiveUser(String username, String pNbr, int clearance, int division) {
		this.username = username;
		this.pNbr = pNbr;
		this.clearance = clearance;
		this.division = division;
	}
	
	/**
	 * Retrieves a specified users user name.
	 * @return Returns the users name
	 */
	public String getName() {
		return username;
	}
	
	/**
	 * Retrieves a specified users person number.
	 * @return Returns the users person number
	 */
	public String getPnbr() {
		return pNbr;
	}
	
	/**
	 * Retrieves a specified users clearance.
	 * @return Returns the users clearance.
	 */
	public int getClearance() {
		return clearance;
	}
	
	/**
	 * Retrieves a specified users division.
	 * @return Returns the users division.
	 */
	public int getDivision() {
		return division;
	}
}
